<%@page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@include file="/includes/taglibs.jsp"%>
<c:choose>
	<c:when test="${actionBean.writeoffed }">
		<table>
			<tr>
				<td>核銷成功，待主管註銷放行</td>
			</tr>
			<tr>
				<td>
					<input id="btn001" type="button" value="確定"/>
				</td>
			</tr>
		</table>
		
		<script type="text/javascript">
		<!--
		$(document).ready(function() {

			$("#btn001").click(function() {
				doQueryAction();
				$( "#paymentsItemDiv" ).dialog( "close" );
			});
		});
		//-->
		</script>
	
	</c:when>
	<c:otherwise>
		<table>
			<tr>
				<td>核銷失敗，請通知系統管理員</td>
			</tr>
			<tr>
				<td>
					<input id="btn001" type="button" value="確定"/>
				</td>
			</tr>
		</table>
		
		<script type="text/javascript">
		<!--
		$(document).ready(function() {

			$("#btn001").click(function() {
				$("#writeOffPaymentMsgDiv" ).hide();
				$("#writeoffPaymentViewDiv").show();
			});
		});
		//-->
		</script>
		
	</c:otherwise>
</c:choose>